// 处理与首页数据相关的请求接口的函数封装
import axios from "@/utils/http.js";

// 根据店铺的id查询店铺的菜品分类数据接口
export const getFoodTypeAPI = (params) => {
    return axios({
        url: "/getFoodType",
        method: "get",
        params,
    });
};

// 根据店铺的id查询和菜品分类的id查询当前分类下对应的菜品接口
export const getFoodListAPI = (params) => {
    return axios({
        url: "/getFoodList",
        method: "get",
        params,
    });
};

// 获取所有店铺列表信息（分页）
export const getBusinessInfoListAPI = (params) => {
    return axios({
        url: "/getBusinessInfoList",
        method: "get",
        params,
    });
};